#26 new
bill

Was: Is rest_auth broken in Rails 2.2?

Reported by bill | November 5th, 2008 @ 11:37 AM

No go, sorry for the incoveniense. I read the installation notes and the answer is there

Up till now I was using Rails 2.1.1 and restfull_authentication was working fine. I upgraded to Rails 2.2 and the activation code mechanism seems broken.

More specifically, the activation code saved in the user's record in the database is different than the one sent in the user's email.

thanks bill

Comments and changes to this ticket

  • bill

    bill November 5th, 2008 @ 11:47 AM

    • Assigned user cleared.
  • Daniel Choi

    Daniel Choi December 10th, 2008 @ 08:04 PM

    I encountered this problem today and it's caused by the activation_code being created twice when a user is created.

    A simple fix is to add this line to the generated code in user.rb

    def make_activation_code
      return if activation_code <--- added
      self.activation_code = Digest::SHA1.hexdigest( Time.now.to_s.split(//).sort_by {rand}.join )
    end
    
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Restful Authentication Generator

This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.

http://github.com/technoweenie/restful-authentication/tree

People watching this ticket

Pages